#include "pr2000_support.h"
#include "pr2000_table.h"
#include "pr2000_ceqfunc.h"

//////////////////////////////////// CEQ Table /////////////////////////////////////////////

/* vadcH(dcgain>0x2E00), vadcL(dcgain<=0x2E00), CVI->[gfit(1x01_gainfit) | ygan(1x28_y_out_gain)] */
 const _stPR2000_Table_CEQ_VADC pr2000_ceq_table_vadc[MAX_PR2000_CEQ_VADC_TBL_NUM] =
{/*{{{*/
//               {{NTSC             }, {PAL              }, {720p60           }, {720p50           }, {720p30           }, {720p25           }, {1080p30          }, {1080p25          }} },
//      {  dist, {{vadc(H|L), gft|yg}, {vadc(H|L), gft|yg}, {vadc(H|L), gft|yg}, {vadc(H|L), gft|yg}, {vadc(H|L), gft|yg}, {vadc(H|L), gft|yg}, {vadc(H|L), gft|yg}, {vadc(H|L), gft|yg}} },
	{     0, {{   0x0000, 0x61C5}, {   0x0000, 0x61C5}, {   0x0000, 0x61C5}, {   0x0000, 0x61C5}, {   0x0000, 0x61C5}, {   0x0000, 0x61C5}, {   0x0000, 0x61C5}, {   0x0000, 0x61C5}} },
	{   100, {{   0x0201, 0x61C5}, {   0x0201, 0x61C5}, {   0x0201, 0x61C5}, {   0x0201, 0x61C5}, {   0x0201, 0x61C5}, {   0x0201, 0x61C5}, {   0x0201, 0x61C5}, {   0x0201, 0x61C5}} },
	{   200, {{   0x0302, 0x61C5}, {   0x0302, 0x61C5}, {   0x0302, 0x61C5}, {   0x0302, 0x61C5}, {   0x0302, 0x61C5}, {   0x0302, 0x61C5}, {   0x0302, 0x61C5}, {   0x0302, 0x61C5}} },
	{   300, {{   0x0403, 0x61C5}, {   0x0403, 0x61C5}, {   0x0403, 0x61C5}, {   0x0403, 0x61C5}, {   0x0403, 0x61C5}, {   0x0403, 0x61C5}, {   0x0403, 0x61C5}, {   0x0403, 0x61C5}} },
	{   400, {{   0x0504, 0x61C5}, {   0x0504, 0x61C5}, {   0x0504, 0x61C5}, {   0x0504, 0x61C5}, {   0x0504, 0x61C5}, {   0x0504, 0x61C5}, {   0x0504, 0x61C5}, {   0x0504, 0x61C5}} },
	{   500, {{   0x0504, 0x61C5}, {   0x0504, 0x61C5}, {   0x0504, 0x61C5}, {   0x0504, 0x61C5}, {   0x0504, 0x61C5}, {   0x0504, 0x61C5}, {   0x0504, 0x61C5}, {   0x0504, 0x61C5}} },
	{   600, {{   0x0505, 0x61C5}, {   0x0505, 0x61C5}, {   0x0505, 0x61C5}, {   0x0505, 0x61C5}, {   0x0505, 0x61C5}, {   0x0505, 0x61C5}, {   0x0505, 0x61C5}, {   0x0505, 0x61C5}} },
	{   700, {{   0x0505, 0x78A0}, {   0x0505, 0x78A0}, {   0x0505, 0x78A0}, {   0x0505, 0x78A0}, {   0x0505, 0x78A0}, {   0x0505, 0x78A0}, {   0x0605, 0x78A0}, {   0x0605, 0x78A0}} },
	{   800, {{   0x0505, 0x9085}, {   0x0505, 0x9085}, {   0x0505, 0x9085}, {   0x0505, 0x9085}, {   0x0505, 0x9085}, {   0x0505, 0x9085}, {   0x0605, 0x9085}, {   0x0605, 0x9085}} },
	{   900, {{   0x0605, 0xA085}, {   0x0605, 0xA085}, {   0x0605, 0xA085}, {   0x0605, 0xA085}, {   0x0605, 0xA085}, {   0x0605, 0xA085}, {   0x0705, 0xA085}, {   0x0705, 0xA085}} },
	{  1000, {{   0x0605, 0xA085}, {   0x0605, 0xA085}, {   0x0605, 0xA085}, {   0x0605, 0xA085}, {   0x0605, 0xA085}, {   0x0605, 0xA085}, {   0x0705, 0xA085}, {   0x0705, 0xA085}} },
	{  1200, {{   0x0605, 0xA085}, {   0x0605, 0xA085}, {   0x0605, 0xA085}, {   0x0605, 0xA085}, {   0x0605, 0xA085}, {   0x0605, 0xA085}, {   0x0705, 0xA085}, {   0x0705, 0xA085}} },
        ///////////////Up:distComp < 1400, use attenDist. Down:distComp >= 1400, use compDist /////////////////////////////
	{  1400, {{   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}} },
	{  1600, {{   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}} },
	{  1800, {{   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}, {   0x0303, 0xA085}} },
	{  2000, {{   0x0404, 0xA085}, {   0x0404, 0xA085}, {   0x0404, 0xA085}, {   0x0404, 0xA085}, {   0x0404, 0xA085}, {   0x0404, 0xA085}, {   0x0404, 0xA085}, {   0x0404, 0xA085}} },
	{  2200, {{   0x0404, 0xA085}, {   0x0404, 0xA085}, {   0x0404, 0xA085}, {   0x0404, 0xA085}, {   0x0404, 0xA085}, {   0x0404, 0xA085}, {   0x0404, 0xA085}, {   0x0404, 0xA085}} },
	{  2400, {{   0x0505, 0xA085}, {   0x0505, 0xA085}, {   0x0505, 0xA085}, {   0x0505, 0xA085}, {   0x0505, 0xA085}, {   0x0505, 0xA085}, {   0x0505, 0xA085}, {   0x0505, 0xA085}} },
	{  2600, {{   0x0505, 0xA085}, {   0x0505, 0xA085}, {   0x0505, 0xA085}, {   0x0505, 0xA085}, {   0x0505, 0xA085}, {   0x0505, 0xA085}, {   0x0505, 0xA085}, {   0x0505, 0xA085}} },
/*END*/ {0xFFFF, {{   0xFFFF, 0xFFFF}, {   0xFFFF, 0xFFFF}, {   0xFFFF, 0xFFFF}, {   0xFFFF, 0xFFFF}, {   0xFFFF, 0xFFFF}, {   0xFFFF, 0xFFFF}, {   0xFFFF, 0xFFFF}, {   0xFFFF, 0xFFFF}} },
};/*}}}*/

 const _stPR2000_Table_CEQ_SDResolution pr2000_ceq_table_estComplex_SD[MAX_PR2000_CEQ_COMP_TBL_NUM] = 
{/*{{{*/
//               {{NTSC			 }, {PAL                   }} },
//      {  dist, {{rngMin, rngMax, factor}, {rngMin, rngMax, factor}} }, //factor = (vadc_eq_band)
	{     0, {{0x0000, 0x023F, 0x0000}, {0x0000, 0x023F, 0x0000}} },
	{   100, {{0x0000, 0x023F, 0x0000}, {0x0000, 0x023F, 0x0000}} },
	{   200, {{0x0000, 0x023F, 0x0000}, {0x0000, 0x023F, 0x0000}} },
	{   300, {{0x0240, 0x027F, 0x0000}, {0x0240, 0x027F, 0x0000}} },
	{   400, {{0x0280, 0x02FF, 0x0000}, {0x0280, 0x02FF, 0x0000}} },
	{   500, {{0x0300, 0x037F, 0x0000}, {0x0300, 0x037F, 0x0000}} },
	{   600, {{0x0380, 0x03FF, 0x0000}, {0x0380, 0x03FF, 0x0000}} },
	{   700, {{0x0400, 0x047F, 0x0000}, {0x0400, 0x047F, 0x0000}} },
	{   800, {{0x0480, 0x04FF, 0x0000}, {0x0480, 0x04FF, 0x0000}} },
	{   900, {{0x0500, 0x05FF, 0x0000}, {0x0500, 0x05FF, 0x0000}} },
	{  1000, {{0x0600, 0x12FF, 0x0000}, {0x0600, 0x12FF, 0x0000}} },
	{  1200, {{0x1300, 0x1FFF, 0x0000}, {0x1300, 0x1FFF, 0x0000}} },
	{  1400, {{0x2000, 0x27FF, 0x0008}, {0x2000, 0x27FF, 0x0008}} },
	{  1600, {{0x2800, 0x2FFF, 0x000C}, {0x2800, 0x2FFF, 0x000C}} },
	{  1800, {{0x3000, 0x37FF, 0x000F}, {0x3000, 0x37FF, 0x000F}} },
	{  2000, {{0x3800, 0x3FFF, 0x0012}, {0x3800, 0x3FFF, 0x0012}} },
	{  2200, {{0x4000, 0x49FF, 0x0014}, {0x4000, 0x49FF, 0x0014}} },
	{  2400, {{0x4A00, 0x53FF, 0x0006}, {0x4A00, 0x53FF, 0x0006}} },
	{  2600, {{0x5400, 0xFFFF, 0x0018}, {0x5400, 0xFFFF, 0x0018}} },
/*END*/ {0xFFFF, {{0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}} },
};/*}}}*/
 const _stPR2000_Table_CEQ_SDResolution pr2000_ceq_table_estAtten2_SD[MAX_PR2000_CEQ_ATTEN_TBL_NUM] = 
{/*{{{*/
//               {{NTSC			 }, {PAL                   }} },
//      {  dist, {{rngMin, rngMax, factor}, {rngMin, rngMax, factor}} },
	{     0, {{0x0000, 0x097F, 0x0000}, {0x0000, 0x097F, 0x0000}} },
	{   100, {{0x0980, 0x0B7F, 0x0003}, {0x0980, 0x0B7F, 0x0003}} },
	{   200, {{0x0B80, 0x0D7F, 0x0007}, {0x0B80, 0x0D7F, 0x0007}} },
	{   300, {{0x0D80, 0x0FFF, 0x0009}, {0x0D80, 0x0FFF, 0x0009}} },
	{   400, {{0x1000, 0x10FF, 0x000B}, {0x1000, 0x10FF, 0x000B}} },
	{   500, {{0x1100, 0x11FF, 0x000F}, {0x1100, 0x11FF, 0x000F}} },
	{   600, {{0x1200, 0x12FF, 0x0012}, {0x1200, 0x12FF, 0x0012}} },
	{   700, {{0x1300, 0x13FF, 0x0015}, {0x1300, 0x13FF, 0x0015}} },
	{   800, {{0x1400, 0x14FF, 0x0018}, {0x1400, 0x14FF, 0x0018}} },
	{   900, {{0x1500, 0x15FF, 0x001A}, {0x1500, 0x15FF, 0x001A}} },
	{  1000, {{0x1600, 0xFFFF, 0x001E}, {0x1600, 0xFFFF, 0x001E}} },
/*END*/ {0xFFFF, {{0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}} },
};/*}}}*/

#if defined(SUPPORT_STD_PVI)
 const _stPR2000_Table_CEQ_STD_HDResolution pr2000_ceq_std_table_estComplex_PVI[MAX_PR2000_CEQ_COMP_TBL_NUM] = 
{/*{{{*/
//               {{720p60                }, {720p50                }, {720p30                }, {720p25                }, {1080p30               }, {1080p25               }} },
//      {  dist, {{rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}} }, //factor = (atten|comp)
	{     0, {{0x0000, 0x01FF, 0x0000}, {0x0000, 0x01FF, 0x0000}, {0x0000, 0x01FF, 0x0000}, {0x0000, 0x01FF, 0x0000}, {0x0000, 0x02FF, 0x0000}, {0x0000, 0x02FF, 0x0000}} },
	{   100, {{0x0200, 0x03FF, 0x0000}, {0x0200, 0x03FF, 0x0000}, {0x0200, 0x03FF, 0x0000}, {0x0200, 0x03FF, 0x0000}, {0x0300, 0x05FF, 0x0000}, {0x0300, 0x05FF, 0x0000}} },
	{   200, {{0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}, {0x0600, 0x08FF, 0x0000}, {0x0600, 0x08FF, 0x0000}} },
	{   300, {{0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}, {0x0900, 0x0BFF, 0x0000}, {0x0900, 0x0BFF, 0x0000}} },
	{   400, {{0x0800, 0x09FF, 0x0000}, {0x0800, 0x09FF, 0x0000}, {0x0800, 0x09FF, 0x0000}, {0x0800, 0x09FF, 0x0000}, {0x0C00, 0x0EFF, 0x0000}, {0x0C00, 0x0EFF, 0x0000}} },
	{   500, {{0x0A00, 0x0BFF, 0x0000}, {0x0A00, 0x0BFF, 0x0000}, {0x0A00, 0x0BFF, 0x0000}, {0x0A00, 0x0BFF, 0x0000}, {0x0F00, 0x11FF, 0x0000}, {0x0F00, 0x11FF, 0x0000}} },
	{   600, {{0x0C00, 0x0DFF, 0x0000}, {0x0C00, 0x0DFF, 0x0000}, {0x0C00, 0x0DFF, 0x0000}, {0x0C00, 0x0DFF, 0x0000}, {0x1200, 0x14FF, 0x0000}, {0x1200, 0x14FF, 0x0000}} },
	{   700, {{0x0E00, 0x0FFF, 0x0000}, {0x0E00, 0x0FFF, 0x0000}, {0x0E00, 0x0FFF, 0x0000}, {0x0E00, 0x0FFF, 0x0000}, {0x1500, 0x17FF, 0x0000}, {0x1500, 0x17FF, 0x0000}} },
	{   800, {{0x1000, 0x11FF, 0x0000}, {0x1000, 0x11FF, 0x0000}, {0x1000, 0x11FF, 0x0000}, {0x1000, 0x11FF, 0x0000}, {0x1800, 0x1AFF, 0x0000}, {0x1800, 0x1AFF, 0x0000}} },
	{   900, {{0x1200, 0x13FF, 0x0000}, {0x1200, 0x13FF, 0x0000}, {0x1200, 0x13FF, 0x0000}, {0x1200, 0x13FF, 0x0000}, {0x1B00, 0x1DFF, 0x0000}, {0x1B00, 0x1DFF, 0x0000}} },
	{  1000, {{0x1400, 0x17FF, 0x0000}, {0x1400, 0x17FF, 0x0000}, {0x1400, 0x17FF, 0x0000}, {0x1400, 0x17FF, 0x0000}, {0x1E00, 0x21FF, 0x0000}, {0x1E00, 0x21FF, 0x0000}} },
	{  1200, {{0x1800, 0x1BFF, 0x0000}, {0x1800, 0x1BFF, 0x0000}, {0x1800, 0x1BFF, 0x0000}, {0x1800, 0x1BFF, 0x0000}, {0x2100, 0x23FF, 0x0000}, {0x2100, 0x23FF, 0x0000}} },
	{  1400, {{0x1C00, 0x2CFF, 0x0008}, {0x1C00, 0x2CFF, 0x0008}, {0x1C00, 0x2CFF, 0x0008}, {0x1C00, 0x2CFF, 0x0008}, {0x2400, 0x39FF, 0x0008}, {0x2400, 0x39FF, 0x0008}} },
	{  1600, {{0x2D00, 0x33FF, 0x000C}, {0x2D00, 0x33FF, 0x000C}, {0x2D00, 0x33FF, 0x000C}, {0x2D00, 0x33FF, 0x000C}, {0x3A00, 0x4FFF, 0x000C}, {0x3A00, 0x4FFF, 0x000C}} },
	{  1800, {{0x3400, 0x3CFF, 0x000F}, {0x3400, 0x3CFF, 0x000F}, {0x3400, 0x3CFF, 0x000F}, {0x3400, 0x3CFF, 0x000F}, {0x5000, 0x5FFF, 0x000F}, {0x5000, 0x5FFF, 0x000F}} },
	{  2000, {{0x3D00, 0x47FF, 0x0012}, {0x3D00, 0x47FF, 0x0012}, {0x3D00, 0x47FF, 0x0012}, {0x3D00, 0x47FF, 0x0012}, {0x6000, 0x77FF, 0x0012}, {0x6000, 0x77FF, 0x0012}} },
	{  2200, {{0x4800, 0x53FF, 0x0014}, {0x4800, 0x53FF, 0x0014}, {0x4800, 0x53FF, 0x0014}, {0x4800, 0x53FF, 0x0014}, {0x7800, 0x97FF, 0x0014}, {0x7800, 0x97FF, 0x0014}} },
	{  2400, {{0x5400, 0x57FF, 0x0016}, {0x5400, 0x57FF, 0x0016}, {0x5400, 0x57FF, 0x0016}, {0x5400, 0x57FF, 0x0016}, {0x9800, 0xAFFF, 0x0016}, {0x9800, 0xAFFF, 0x0016}} },
	{  2600, {{0x5800, 0xFFFF, 0x0018}, {0x5800, 0xFFFF, 0x0018}, {0x5800, 0xFFFF, 0x0018}, {0x5800, 0xFFFF, 0x0018}, {0xB000, 0xFFFF, 0x0018}, {0xB000, 0xFFFF, 0x0018}} },
/*END*/ {0xFFFF, {{0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}} },
};/*}}}*/
 const _stPR2000_Table_CEQ_STD_HDResolution pr2000_ceq_std_table_estAtten2_PVI[MAX_PR2000_CEQ_ATTEN_TBL_NUM] = 
{/*{{{*/
//               {{720p60                }, {720p50                }, {720p30                }, {720p25                }, {1080p30               }, {1080p25               }} },
//      {  dist, {{rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}} },
	{     0, {{0x0000, 0x077F, 0x0000}, {0x0000, 0x077F, 0x0000}, {0x0000, 0x077F, 0x0000}, {0x0000, 0x077F, 0x0000}, {0x0000, 0x05B5, 0x0000}, {0x0000, 0x05B5, 0x0000}} },
	{   100, {{0x0780, 0x097F, 0x0003}, {0x0780, 0x097F, 0x0003}, {0x0780, 0x097F, 0x0003}, {0x0780, 0x097F, 0x0003}, {0x05B6, 0x076B, 0x0003}, {0x05B6, 0x076B, 0x0003}} },
	{   200, {{0x0980, 0x0B7F, 0x0007}, {0x0980, 0x0B7F, 0x0007}, {0x0980, 0x0B7F, 0x0007}, {0x0980, 0x0B7F, 0x0007}, {0x076C, 0x097F, 0x0007}, {0x076C, 0x097F, 0x0007}} },
	{   300, {{0x0B80, 0x0D7F, 0x0009}, {0x0B80, 0x0D7F, 0x0009}, {0x0B80, 0x0D7F, 0x0009}, {0x0B80, 0x0D7F, 0x0009}, {0x0980, 0x0BFF, 0x0009}, {0x0980, 0x0BFF, 0x0009}} },
	{   400, {{0x0D80, 0x0F7F, 0x000B}, {0x0D80, 0x0F7F, 0x000B}, {0x0D80, 0x0F7F, 0x000B}, {0x0D80, 0x0F7F, 0x000B}, {0x0C00, 0x0EFF, 0x000B}, {0x0C00, 0x0EFF, 0x000B}} },
	{   500, {{0x0F80, 0x10FF, 0x000F}, {0x0F80, 0x10FF, 0x000F}, {0x0F80, 0x10FF, 0x000F}, {0x0F80, 0x10FF, 0x000F}, {0x0F00, 0x107F, 0x000F}, {0x0F00, 0x107F, 0x000F}} },
	{   600, {{0x1100, 0x127F, 0x0012}, {0x1100, 0x127F, 0x0012}, {0x1100, 0x127F, 0x0012}, {0x1100, 0x127F, 0x0012}, {0x1080, 0x127F, 0x0012}, {0x1080, 0x127F, 0x0012}} },
	{   700, {{0x1280, 0x13FF, 0x0015}, {0x1280, 0x13FF, 0x0015}, {0x1280, 0x13FF, 0x0015}, {0x1280, 0x13FF, 0x0015}, {0x1280, 0x13FF, 0x0015}, {0x1280, 0x13FF, 0x0015}} },
	{   800, {{0x1400, 0x14FF, 0x0018}, {0x1400, 0x14FF, 0x0018}, {0x1400, 0x14FF, 0x0018}, {0x1400, 0x14FF, 0x0018}, {0x1400, 0x157F, 0x0018}, {0x1400, 0x157F, 0x0018}} },
	{   900, {{0x1500, 0x15FF, 0x001A}, {0x1500, 0x15FF, 0x001A}, {0x1500, 0x15FF, 0x001A}, {0x1500, 0x15FF, 0x001A}, {0x1580, 0x177F, 0x001A}, {0x1580, 0x177F, 0x001A}} },
	{  1000, {{0x1600, 0xFFFF, 0x001E}, {0x1600, 0xFFFF, 0x001E}, {0x1600, 0xFFFF, 0x001E}, {0x1600, 0xFFFF, 0x001E}, {0x1780, 0xFFFF, 0x001E}, {0x1780, 0xFFFF, 0x001E}} },
/*END*/ {0xFFFF, {{0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}} },
};/*}}}*/
#endif //defined(SUPPORT_STD_PVI)

#if defined(SUPPORT_STD_HDA)
 const _stPR2000_Table_CEQ_STD_HDResolution pr2000_ceq_std_table_estComplex_HDA[MAX_PR2000_CEQ_COMP_TBL_NUM] = 
{/*{{{*/
//               {{720p60                }, {720p50                }, {720p30                }, {720p25                }, {1080p30               }, {1080p25               }} },
//      {  dist, {{rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}} }, //factor = (atten|comp)
	{     0, {{0x0000, 0x00FF, 0x0000}, {0x0000, 0x00FF, 0x0000}, {0x0000, 0x00FF, 0x0000}, {0x0000, 0x00FF, 0x0000}, {0x0000, 0x01FF, 0x0000}, {0x0000, 0x01FF, 0x0000}} },
	{   100, {{0x0100, 0x01FF, 0x0000}, {0x0100, 0x01FF, 0x0000}, {0x0100, 0x01FF, 0x0000}, {0x0100, 0x01FF, 0x0000}, {0x0200, 0x03FF, 0x0000}, {0x0200, 0x03FF, 0x0000}} },
	{   200, {{0x0200, 0x02FF, 0x0000}, {0x0200, 0x02FF, 0x0000}, {0x0200, 0x02FF, 0x0000}, {0x0200, 0x02FF, 0x0000}, {0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}} },
	{   300, {{0x0300, 0x03FF, 0x0000}, {0x0300, 0x03FF, 0x0000}, {0x0300, 0x03FF, 0x0000}, {0x0300, 0x03FF, 0x0000}, {0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}} },
	{   400, {{0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}, {0x0800, 0x0AFF, 0x0000}, {0x0800, 0x0AFF, 0x0000}} },
	{   500, {{0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}, {0x0B00, 0x0DFF, 0x0000}, {0x0B00, 0x0DFF, 0x0000}} },
	{   600, {{0x0800, 0x09FF, 0x0000}, {0x0800, 0x09FF, 0x0000}, {0x0800, 0x09FF, 0x0000}, {0x0800, 0x09FF, 0x0000}, {0x0E00, 0x10FF, 0x0000}, {0x0E00, 0x10FF, 0x0000}} },
	{   700, {{0x0A00, 0x0BFF, 0x0000}, {0x0A00, 0x0BFF, 0x0000}, {0x0A00, 0x0BFF, 0x0000}, {0x0A00, 0x0BFF, 0x0000}, {0x1100, 0x13FF, 0x0000}, {0x1100, 0x13FF, 0x0000}} },
	{   800, {{0x0C00, 0x0DFF, 0x0000}, {0x0C00, 0x0DFF, 0x0000}, {0x0C00, 0x0DFF, 0x0000}, {0x0C00, 0x0DFF, 0x0000}, {0x1400, 0x16FF, 0x0000}, {0x1400, 0x16FF, 0x0000}} },
	{   900, {{0x0E00, 0x0FFF, 0x0000}, {0x0E00, 0x0FFF, 0x0000}, {0x0E00, 0x0FFF, 0x0000}, {0x0E00, 0x0FFF, 0x0000}, {0x1700, 0x19FF, 0x0000}, {0x1700, 0x19FF, 0x0000}} },
	{  1000, {{0x1000, 0x13FF, 0x0000}, {0x1000, 0x13FF, 0x0000}, {0x1000, 0x13FF, 0x0000}, {0x1000, 0x13FF, 0x0000}, {0x1A00, 0x1CFF, 0x0000}, {0x1A00, 0x1CFF, 0x0000}} },
	{  1200, {{0x1400, 0x15FF, 0x0000}, {0x1400, 0x15FF, 0x0000}, {0x1400, 0x15FF, 0x0000}, {0x1400, 0x15FF, 0x0000}, {0x1D00, 0x1FFF, 0x0000}, {0x1D00, 0x1FFF, 0x0000}} },
	{  1400, {{0x1600, 0x1CFF, 0x0008}, {0x1600, 0x1CFF, 0x0008}, {0x1600, 0x1CFF, 0x0008}, {0x1600, 0x1CFF, 0x0008}, {0x2000, 0x2FFF, 0x0008}, {0x2000, 0x2FFF, 0x0008}} },
	{  1600, {{0x1D00, 0x1FFF, 0x000C}, {0x1D00, 0x1FFF, 0x000C}, {0x1D00, 0x1FFF, 0x000C}, {0x1D00, 0x1FFF, 0x000C}, {0x3000, 0x3CFF, 0x000C}, {0x3000, 0x3CFF, 0x000C}} },
	{  1800, {{0x2000, 0x23FF, 0x000F}, {0x2000, 0x23FF, 0x000F}, {0x2000, 0x23FF, 0x000F}, {0x2000, 0x23FF, 0x000F}, {0x3D00, 0x4BFF, 0x000F}, {0x3D00, 0x4BFF, 0x000F}} },
	{  2000, {{0x2400, 0x27FF, 0x0012}, {0x2400, 0x27FF, 0x0012}, {0x2400, 0x27FF, 0x0012}, {0x2400, 0x27FF, 0x0012}, {0x4C00, 0x53FF, 0x0012}, {0x4C00, 0x53FF, 0x0012}} },
	{  2200, {{0x2800, 0x2CFF, 0x0014}, {0x2800, 0x2CFF, 0x0014}, {0x2800, 0x2CFF, 0x0014}, {0x2800, 0x2CFF, 0x0014}, {0x5400, 0x6BFF, 0x0014}, {0x5400, 0x6BFF, 0x0014}} },
	{  2400, {{0x2D00, 0x33FF, 0x0016}, {0x2D00, 0x33FF, 0x0016}, {0x2D00, 0x33FF, 0x0016}, {0x2D00, 0x33FF, 0x0016}, {0x6C00, 0x7BFF, 0x0016}, {0x6C00, 0x7BFF, 0x0016}} },
	{  2600, {{0x3400, 0xFFFF, 0x0018}, {0x3400, 0xFFFF, 0x0018}, {0x3400, 0xFFFF, 0x0018}, {0x3400, 0xFFFF, 0x0018}, {0x7C00, 0xFFFF, 0x0018}, {0x7C00, 0xFFFF, 0x0018}} },
/*END*/ {0xFFFF, {{0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}} },
};/*}}}*/
 const _stPR2000_Table_CEQ_STD_HDResolution pr2000_ceq_std_table_estAtten2_HDA[MAX_PR2000_CEQ_ATTEN_TBL_NUM] = 
{/*{{{*/
//               {{720p60                }, {720p50                }, {720p30                }, {720p25                }, {1080p30               }, {1080p25               }} },
//      {  dist, {{rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}} },
	{     0, {{0x0000, 0x097F, 0x0000}, {0x0000, 0x097F, 0x0000}, {0x0000, 0x097F, 0x0000}, {0x0000, 0x097F, 0x0000}, {0x0000, 0x0866, 0x0000}, {0x0000, 0x0866, 0x0000}} },
	{   100, {{0x0980, 0x0AFF, 0x0003}, {0x0980, 0x0AFF, 0x0003}, {0x0980, 0x0AFF, 0x0003}, {0x0980, 0x0AFF, 0x0003}, {0x0867, 0x0A4B, 0x0003}, {0x0867, 0x0A4B, 0x0003}} },
	{   200, {{0x0B00, 0x0C7F, 0x0007}, {0x0B00, 0x0C7F, 0x0007}, {0x0B00, 0x0C7F, 0x0007}, {0x0B00, 0x0C7F, 0x0007}, {0x0A4C, 0x0C23, 0x0007}, {0x0A4C, 0x0C23, 0x0007}} },
	{   300, {{0x0C80, 0x0EFF, 0x0009}, {0x0C80, 0x0EFF, 0x0009}, {0x0C80, 0x0EFF, 0x0009}, {0x0C80, 0x0EFF, 0x0009}, {0x0C24, 0x0EAC, 0x0009}, {0x0C24, 0x0EAC, 0x0009}} },
	{   400, {{0x0F00, 0x107F, 0x000B}, {0x0F00, 0x107F, 0x000B}, {0x0F00, 0x107F, 0x000B}, {0x0F00, 0x107F, 0x000B}, {0x0EAD, 0x10FF, 0x000B}, {0x0EAD, 0x10FF, 0x000B}} },
	{   500, {{0x1080, 0x11FF, 0x000F}, {0x1080, 0x11FF, 0x000F}, {0x1080, 0x11FF, 0x000F}, {0x1080, 0x11FF, 0x000F}, {0x1100, 0x127F, 0x000F}, {0x1100, 0x127F, 0x000F}} },
	{   600, {{0x1200, 0x12FF, 0x0012}, {0x1200, 0x12FF, 0x0012}, {0x1200, 0x12FF, 0x0012}, {0x1200, 0x12FF, 0x0012}, {0x1280, 0x147F, 0x0012}, {0x1280, 0x147F, 0x0012}} },
	{   700, {{0x1300, 0x13FF, 0x0015}, {0x1300, 0x13FF, 0x0015}, {0x1300, 0x13FF, 0x0015}, {0x1300, 0x13FF, 0x0015}, {0x1480, 0x157F, 0x0015}, {0x1480, 0x157F, 0x0015}} },
	{   800, {{0x1400, 0x14FF, 0x0018}, {0x1400, 0x14FF, 0x0018}, {0x1400, 0x14FF, 0x0018}, {0x1400, 0x14FF, 0x0018}, {0x1580, 0x177F, 0x0018}, {0x1580, 0x177F, 0x0018}} },
	{   900, {{0x1500, 0x15FF, 0x001A}, {0x1500, 0x15FF, 0x001A}, {0x1500, 0x15FF, 0x001A}, {0x1500, 0x15FF, 0x001A}, {0x1780, 0x197F, 0x001A}, {0x1780, 0x197F, 0x001A}} },
	{  1000, {{0x1600, 0xFFFF, 0x001E}, {0x1600, 0xFFFF, 0x001E}, {0x1600, 0xFFFF, 0x001E}, {0x1600, 0xFFFF, 0x001E}, {0x1980, 0xFFFF, 0x001E}, {0x1980, 0xFFFF, 0x001E}} },
/*END*/ {0xFFFF, {{0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}} },
};/*}}}*/
#endif //defined(SUPPORT_STD_HDA)

#if defined(SUPPORT_STD_CVI)
 const _stPR2000_Table_CEQ_STD_HDResolution pr2000_ceq_std_table_estComplex_CVI[MAX_PR2000_CEQ_COMP_TBL_NUM] = 
{/*{{{*/
//               {{720p60                }, {720p50                }, {720p30                }, {720p25                }, {1080p30               }, {1080p25               }} },
//      {  dist, {{rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}} }, //factor = (atten|comp)
	{     0, {{0x0000, 0x01FF, 0x0000}, {0x0000, 0x01FF, 0x0000}, {0x0000, 0x01FF, 0x0000}, {0x0000, 0x01FF, 0x0000}, {0x0000, 0x01FF, 0x0000}, {0x0000, 0x01FF, 0x0000}} },
	{   100, {{0x0200, 0x03FF, 0x0000}, {0x0200, 0x03FF, 0x0000}, {0x0200, 0x03FF, 0x0000}, {0x0200, 0x03FF, 0x0000}, {0x0200, 0x03FF, 0x0000}, {0x0200, 0x03FF, 0x0000}} },
	{   200, {{0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}} },
	{   300, {{0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}} },
	{   400, {{0x0800, 0x09FF, 0x0000}, {0x0800, 0x09FF, 0x0000}, {0x0800, 0x09FF, 0x0000}, {0x0800, 0x09FF, 0x0000}, {0x0800, 0x0AFF, 0x0000}, {0x0800, 0x0AFF, 0x0000}} },
	{   500, {{0x0A00, 0x0BFF, 0x0000}, {0x0A00, 0x0BFF, 0x0000}, {0x0A00, 0x0BFF, 0x0000}, {0x0A00, 0x0BFF, 0x0000}, {0x0B00, 0x0DFF, 0x0000}, {0x0B00, 0x0DFF, 0x0000}} },
	{   600, {{0x0C00, 0x0DFF, 0x0000}, {0x0C00, 0x0DFF, 0x0000}, {0x0C00, 0x0DFF, 0x0000}, {0x0C00, 0x0DFF, 0x0000}, {0x0E00, 0x10FF, 0x0000}, {0x0E00, 0x10FF, 0x0000}} },
	{   700, {{0x0E00, 0x0FFF, 0x0000}, {0x0E00, 0x0FFF, 0x0000}, {0x0E00, 0x0FFF, 0x0000}, {0x0E00, 0x0FFF, 0x0000}, {0x1100, 0x13FF, 0x0000}, {0x1100, 0x13FF, 0x0000}} },
	{   800, {{0x1000, 0x11FF, 0x0000}, {0x1000, 0x11FF, 0x0000}, {0x1000, 0x11FF, 0x0000}, {0x1000, 0x11FF, 0x0000}, {0x1400, 0x16FF, 0x0000}, {0x1400, 0x16FF, 0x0000}} },
	{   900, {{0x1200, 0x13FF, 0x0000}, {0x1200, 0x13FF, 0x0000}, {0x1200, 0x13FF, 0x0000}, {0x1200, 0x13FF, 0x0000}, {0x1700, 0x19FF, 0x0000}, {0x1700, 0x19FF, 0x0000}} },
	{  1000, {{0x1400, 0x15FF, 0x0000}, {0x1400, 0x15FF, 0x0000}, {0x1400, 0x15FF, 0x0000}, {0x1400, 0x15FF, 0x0000}, {0x1A00, 0x1CFF, 0x0000}, {0x1A00, 0x1CFF, 0x0000}} },
	{  1200, {{0x1600, 0x17FF, 0x0000}, {0x1600, 0x17FF, 0x0000}, {0x1600, 0x17FF, 0x0000}, {0x1600, 0x17FF, 0x0000}, {0x1D00, 0x1FFF, 0x0000}, {0x1D00, 0x1FFF, 0x0000}} },
	{  1400, {{0x1800, 0x27FF, 0x0008}, {0x1800, 0x27FF, 0x0008}, {0x1800, 0x27FF, 0x0008}, {0x1800, 0x27FF, 0x0008}, {0x2000, 0x2FFF, 0x0008}, {0x2000, 0x2FFF, 0x0008}} },
	{  1600, {{0x2800, 0x2FFF, 0x000C}, {0x2800, 0x2FFF, 0x000C}, {0x2800, 0x2FFF, 0x000C}, {0x2800, 0x2FFF, 0x000C}, {0x3000, 0x3CFF, 0x000C}, {0x3000, 0x3CFF, 0x000C}} },
	{  1800, {{0x3000, 0x37FF, 0x000F}, {0x3000, 0x37FF, 0x000F}, {0x3000, 0x37FF, 0x000F}, {0x3000, 0x37FF, 0x000F}, {0x3D00, 0x4BFF, 0x000F}, {0x3D00, 0x4BFF, 0x000F}} },
	{  2000, {{0x3800, 0x3FFF, 0x0012}, {0x3800, 0x3FFF, 0x0012}, {0x3800, 0x3FFF, 0x0012}, {0x3800, 0x3FFF, 0x0012}, {0x4C00, 0x53FF, 0x0012}, {0x4C00, 0x53FF, 0x0012}} },
	{  2200, {{0x4000, 0x47FF, 0x0014}, {0x4000, 0x47FF, 0x0014}, {0x4000, 0x47FF, 0x0014}, {0x4000, 0x47FF, 0x0014}, {0x5400, 0x6BFF, 0x0014}, {0x5400, 0x6BFF, 0x0014}} },
	{  2400, {{0x4800, 0x53FF, 0x0016}, {0x4800, 0x53FF, 0x0016}, {0x4800, 0x53FF, 0x0016}, {0x4800, 0x53FF, 0x0016}, {0x6C00, 0x7BFF, 0x0016}, {0x6C00, 0x7BFF, 0x0016}} },
	{  2600, {{0x5400, 0xFFFF, 0x0018}, {0x5400, 0xFFFF, 0x0018}, {0x5400, 0xFFFF, 0x0018}, {0x5400, 0xFFFF, 0x0018}, {0x7C00, 0xFFFF, 0x0018}, {0x7C00, 0xFFFF, 0x0018}} },
/*END*/ {0xFFFF, {{0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}} },
};/*}}}*/
 const _stPR2000_Table_CEQ_STD_HDResolution pr2000_ceq_std_table_estAtten2_CVI[MAX_PR2000_CEQ_ATTEN_TBL_NUM] = 
{/*{{{*/
//               {{720p60                }, {720p50                }, {720p30                }, {720p25                }, {1080p30               }, {1080p25               }} },
//      {  dist, {{rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}} },
	{     0, {{0x0000, 0x08B9, 0x0000}, {0x0000, 0x08B9, 0x0000}, {0x0000, 0x08B9, 0x0000}, {0x0000, 0x08B9, 0x0000}, {0x0000, 0x068D, 0x0000}, {0x0000, 0x068D, 0x0000}} },
	{   100, {{0x08BA, 0x0B39, 0x0003}, {0x08BA, 0x0B39, 0x0003}, {0x08BA, 0x0B39, 0x0003}, {0x08BA, 0x0B39, 0x0003}, {0x068E, 0x0862, 0x0003}, {0x068E, 0x0862, 0x0003}} },
	{   200, {{0x0B3A, 0x0DB3, 0x0007}, {0x0B3A, 0x0DB3, 0x0007}, {0x0B3A, 0x0DB3, 0x0007}, {0x0B3A, 0x0DB3, 0x0007}, {0x0863, 0x0B39, 0x0007}, {0x0863, 0x0B39, 0x0007}} },
	{   300, {{0x0DB4, 0x0FD5, 0x0009}, {0x0DB4, 0x0FD5, 0x0009}, {0x0DB4, 0x0FD5, 0x0009}, {0x0DB4, 0x0FD5, 0x0009}, {0x0B3A, 0x0DC4, 0x0009}, {0x0B3A, 0x0DC4, 0x0009}} },
	{   400, {{0x0FD6, 0x10FF, 0x000B}, {0x0FD6, 0x10FF, 0x000B}, {0x0FD6, 0x10FF, 0x000B}, {0x0FD6, 0x10FF, 0x000B}, {0x0DC5, 0x0FFF, 0x000B}, {0x0DC5, 0x0FFF, 0x000B}} },
	{   500, {{0x1100, 0x11FF, 0x000F}, {0x1100, 0x11FF, 0x000F}, {0x1100, 0x11FF, 0x000F}, {0x1100, 0x11FF, 0x000F}, {0x1000, 0x117F, 0x000F}, {0x1000, 0x117F, 0x000F}} },
	{   600, {{0x1200, 0x12FF, 0x0012}, {0x1200, 0x12FF, 0x0012}, {0x1200, 0x12FF, 0x0012}, {0x1200, 0x12FF, 0x0012}, {0x1180, 0x137F, 0x0012}, {0x1180, 0x137F, 0x0012}} },
	{   700, {{0x1300, 0x13FF, 0x0015}, {0x1300, 0x13FF, 0x0015}, {0x1300, 0x13FF, 0x0015}, {0x1300, 0x13FF, 0x0015}, {0x1380, 0x14FF, 0x0015}, {0x1380, 0x14FF, 0x0015}} },
	{   800, {{0x1400, 0x14FF, 0x0018}, {0x1400, 0x14FF, 0x0018}, {0x1400, 0x14FF, 0x0018}, {0x1400, 0x14FF, 0x0018}, {0x1500, 0x167F, 0x0018}, {0x1500, 0x167F, 0x0018}} },
	{   900, {{0x1500, 0x15FF, 0x001A}, {0x1500, 0x15FF, 0x001A}, {0x1500, 0x15FF, 0x001A}, {0x1500, 0x15FF, 0x001A}, {0x1680, 0x17FF, 0x001A}, {0x1680, 0x17FF, 0x001A}} },
	{  1000, {{0x1600, 0xFFFF, 0x001E}, {0x1600, 0xFFFF, 0x001E}, {0x1600, 0xFFFF, 0x001E}, {0x1600, 0xFFFF, 0x001E}, {0x1800, 0xFFFF, 0x001E}, {0x1800, 0xFFFF, 0x001E}} },
/*END*/ {0xFFFF, {{0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}} },
};/*}}}*/
#endif //defined(SUPPORT_STD_CVI)

#if defined(SUPPORT_STD_HDT)
 const _stPR2000_Table_CEQ_STD_HDResolution pr2000_ceq_std_table_estComplex_HDT_OLD[MAX_PR2000_CEQ_COMP_TBL_NUM] = 
{/*{{{*/
//               {{720p60                }, {720p50                }, {720p30                }, {720p25                }, {1080p30               }, {1080p25               }} },
//      {  dist, {{rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}} }, //factor = (atten|comp)
	{     0, {{0x0000, 0x03FF, 0x0000}, {0x0000, 0x03FF, 0x0000}, {0x0000, 0x03FF, 0x0000}, {0x0000, 0x03FF, 0x0000}, {0x0000, 0x01FF, 0x0000}, {0x0000, 0x01FF, 0x0000}} },
	{   100, {{0x0400, 0x07FF, 0x0000}, {0x0400, 0x07FF, 0x0000}, {0x0400, 0x07FF, 0x0000}, {0x0400, 0x07FF, 0x0000}, {0x0200, 0x03FF, 0x0000}, {0x0200, 0x03FF, 0x0000}} },
	{   200, {{0x0800, 0x0BFF, 0x0000}, {0x0800, 0x0BFF, 0x0000}, {0x0800, 0x0BFF, 0x0000}, {0x0800, 0x0BFF, 0x0000}, {0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}} },
	{   300, {{0x0C00, 0x0FFF, 0x0000}, {0x0C00, 0x0FFF, 0x0000}, {0x0C00, 0x0FFF, 0x0000}, {0x0C00, 0x0FFF, 0x0000}, {0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}} },
	{   400, {{0x1000, 0x13FF, 0x0000}, {0x1000, 0x13FF, 0x0000}, {0x1000, 0x13FF, 0x0000}, {0x1000, 0x13FF, 0x0000}, {0x0800, 0x0AFF, 0x0000}, {0x0800, 0x0AFF, 0x0000}} },
	{   500, {{0x1400, 0x17FF, 0x0000}, {0x1400, 0x17FF, 0x0000}, {0x1400, 0x17FF, 0x0000}, {0x1400, 0x17FF, 0x0000}, {0x0B00, 0x0DFF, 0x0000}, {0x0B00, 0x0DFF, 0x0000}} },
	{   600, {{0x1800, 0x1BFF, 0x0000}, {0x1800, 0x1BFF, 0x0000}, {0x1800, 0x1BFF, 0x0000}, {0x1800, 0x1BFF, 0x0000}, {0x0E00, 0x10FF, 0x0000}, {0x0E00, 0x10FF, 0x0000}} },
	{   700, {{0x1C00, 0x1FFF, 0x0000}, {0x1C00, 0x1FFF, 0x0000}, {0x1C00, 0x1FFF, 0x0000}, {0x1C00, 0x1FFF, 0x0000}, {0x1100, 0x13FF, 0x0000}, {0x1100, 0x13FF, 0x0000}} },
	{   800, {{0x2000, 0x25FF, 0x0000}, {0x2000, 0x25FF, 0x0000}, {0x2000, 0x25FF, 0x0000}, {0x2000, 0x25FF, 0x0000}, {0x1400, 0x16FF, 0x0000}, {0x1400, 0x16FF, 0x0000}} },
	{   900, {{0x2600, 0x2BFF, 0x0000}, {0x2600, 0x2BFF, 0x0000}, {0x2600, 0x2BFF, 0x0000}, {0x2600, 0x2BFF, 0x0000}, {0x1700, 0x19FF, 0x0000}, {0x1700, 0x19FF, 0x0000}} },
	{  1000, {{0x2C00, 0x31FF, 0x0000}, {0x2C00, 0x31FF, 0x0000}, {0x2C00, 0x31FF, 0x0000}, {0x2C00, 0x31FF, 0x0000}, {0x1A00, 0x1CFF, 0x0000}, {0x1A00, 0x1CFF, 0x0000}} },
	{  1200, {{0x3200, 0x37FF, 0x0000}, {0x3200, 0x37FF, 0x0000}, {0x3200, 0x37FF, 0x0000}, {0x3200, 0x37FF, 0x0000}, {0x1D00, 0x1FFF, 0x0000}, {0x1D00, 0x1FFF, 0x0000}} },
	{  1400, {{0x3800, 0x47FF, 0x0008}, {0x3800, 0x47FF, 0x0008}, {0x3800, 0x47FF, 0x0008}, {0x3800, 0x47FF, 0x0008}, {0x2000, 0x2FFF, 0x0008}, {0x2000, 0x2FFF, 0x0008}} },
	{  1600, {{0x4800, 0x57FF, 0x000C}, {0x4800, 0x57FF, 0x000C}, {0x4800, 0x57FF, 0x000C}, {0x4800, 0x57FF, 0x000C}, {0x3000, 0x3CFF, 0x000C}, {0x3000, 0x3CFF, 0x000C}} },
	{  1800, {{0x5800, 0x67FF, 0x000F}, {0x5800, 0x67FF, 0x000F}, {0x5800, 0x67FF, 0x000F}, {0x5800, 0x67FF, 0x000F}, {0x3D00, 0x4BFF, 0x000F}, {0x3D00, 0x4BFF, 0x000F}} },
	{  2000, {{0x6800, 0x77FF, 0x0012}, {0x6800, 0x77FF, 0x0012}, {0x6800, 0x77FF, 0x0012}, {0x6800, 0x77FF, 0x0012}, {0x4C00, 0x53FF, 0x0012}, {0x4C00, 0x53FF, 0x0012}} },
	{  2200, {{0x7800, 0x9FFF, 0x0014}, {0x7800, 0x9FFF, 0x0014}, {0x7800, 0x9FFF, 0x0014}, {0x7800, 0x9FFF, 0x0014}, {0x5400, 0x6BFF, 0x0014}, {0x5400, 0x6BFF, 0x0014}} },
	{  2400, {{0xA000, 0xBFFF, 0x0016}, {0xA000, 0xBFFF, 0x0016}, {0xA000, 0xBFFF, 0x0016}, {0xA000, 0xBFFF, 0x0016}, {0x6C00, 0x7BFF, 0x0016}, {0x6C00, 0x7BFF, 0x0016}} },
	{  2600, {{0xC000, 0xFFFF, 0x0018}, {0xC000, 0xFFFF, 0x0018}, {0xC000, 0xFFFF, 0x0018}, {0xC000, 0xFFFF, 0x0018}, {0x7C00, 0xFFFF, 0x0018}, {0x7C00, 0xFFFF, 0x0018}} },
/*END*/ {0xFFFF, {{0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}} },
};/*}}}*/
 const _stPR2000_Table_CEQ_STD_HDResolution pr2000_ceq_std_table_estAtten2_HDT_OLD[MAX_PR2000_CEQ_ATTEN_TBL_NUM] =  
{/*{{{*/
//               {{720p60                }, {720p50                }, {720p30                }, {720p25                }, {1080p30               }, {1080p25               }} },
//      {  dist, {{rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}} },
	{     0, {{0x0000, 0x0680, 0x0000}, {0x0000, 0x0680, 0x0000}, {0x0000, 0x0680, 0x0000}, {0x0000, 0x0680, 0x0000}, {0x0000, 0x06A9, 0x0000}, {0x0000, 0x06A9, 0x0000}} },
	{   100, {{0x0681, 0x0837, 0x0003}, {0x0681, 0x0837, 0x0003}, {0x0681, 0x0837, 0x0003}, {0x0681, 0x0837, 0x0003}, {0x06AA, 0x0866, 0x0003}, {0x06AA, 0x0866, 0x0003}} },
	{   200, {{0x0838, 0x0A8A, 0x0007}, {0x0838, 0x0A8A, 0x0007}, {0x0838, 0x0A8A, 0x0007}, {0x0838, 0x0A8A, 0x0007}, {0x0867, 0x0A84, 0x0007}, {0x0867, 0x0A84, 0x0007}} },
	{   300, {{0x0A8B, 0x0C3C, 0x0009}, {0x0A8B, 0x0C3C, 0x0009}, {0x0A8B, 0x0C3C, 0x0009}, {0x0A8B, 0x0C3C, 0x0009}, {0x0A85, 0x0D81, 0x0009}, {0x0A85, 0x0D81, 0x0009}} },
	{   400, {{0x0C3D, 0x0E5D, 0x000B}, {0x0C3D, 0x0E5D, 0x000B}, {0x0C3D, 0x0E5D, 0x000B}, {0x0C3D, 0x0E5D, 0x000B}, {0x0D82, 0x0FFF, 0x000B}, {0x0D82, 0x0FFF, 0x000B}} },
	{   500, {{0x0E5E, 0x1051, 0x000F}, {0x0E5E, 0x1051, 0x000F}, {0x0E5E, 0x1051, 0x000F}, {0x0E5E, 0x1051, 0x000F}, {0x1000, 0x117F, 0x000F}, {0x1000, 0x117F, 0x000F}} },
	{   600, {{0x1052, 0x11FF, 0x0012}, {0x1052, 0x11FF, 0x0012}, {0x1052, 0x11FF, 0x0012}, {0x1052, 0x11FF, 0x0012}, {0x1180, 0x12FF, 0x0012}, {0x1180, 0x12FF, 0x0012}} },
	{   700, {{0x1200, 0x137F, 0x0015}, {0x1200, 0x137F, 0x0015}, {0x1200, 0x137F, 0x0015}, {0x1200, 0x137F, 0x0015}, {0x1300, 0x147F, 0x0015}, {0x1300, 0x147F, 0x0015}} },
	{   800, {{0x1380, 0x14FF, 0x0018}, {0x1380, 0x14FF, 0x0018}, {0x1380, 0x14FF, 0x0018}, {0x1380, 0x14FF, 0x0018}, {0x1480, 0x167F, 0x0018}, {0x1480, 0x167F, 0x0018}} },
	{   900, {{0x1500, 0x15FF, 0x001A}, {0x1500, 0x15FF, 0x001A}, {0x1500, 0x15FF, 0x001A}, {0x1500, 0x15FF, 0x001A}, {0x1680, 0x187F, 0x001A}, {0x1680, 0x187F, 0x001A}} },
	{  1000, {{0x1600, 0xFFFF, 0x001E}, {0x1600, 0xFFFF, 0x001E}, {0x1600, 0xFFFF, 0x001E}, {0x1600, 0xFFFF, 0x001E}, {0x1880, 0xFFFF, 0x001E}, {0x1880, 0xFFFF, 0x001E}} },
/*END*/ {0xFFFF, {{0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}} },
};/*}}}*/

 const _stPR2000_Table_CEQ_STD_HDResolution pr2000_ceq_std_table_estComplex_HDT_NEW[MAX_PR2000_CEQ_COMP_TBL_NUM] = 
{/*{{{*/
//               {{720p60                }, {720p50                }, {720p30                }, {720p25                }, {1080p30               }, {1080p25               }} },
//      {  dist, {{rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}} }, //factor = (atten|comp)
	{     0, {{0x0000, 0x01FF, 0x0000}, {0x0000, 0x01FF, 0x0000}, {0x0000, 0x01FF, 0x0000}, {0x0000, 0x01FF, 0x0000}, {0x0000, 0x01FF, 0x0000}, {0x0000, 0x01FF, 0x0000}} },
	{   100, {{0x0200, 0x03FF, 0x0000}, {0x0200, 0x03FF, 0x0000}, {0x0200, 0x03FF, 0x0000}, {0x0200, 0x03FF, 0x0000}, {0x0200, 0x03FF, 0x0000}, {0x0200, 0x03FF, 0x0000}} },
	{   200, {{0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}, {0x0400, 0x05FF, 0x0000}} },
	{   300, {{0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}, {0x0600, 0x07FF, 0x0000}} },
	{   400, {{0x0800, 0x09FF, 0x0000}, {0x0800, 0x09FF, 0x0000}, {0x0800, 0x09FF, 0x0000}, {0x0800, 0x09FF, 0x0000}, {0x0800, 0x0AFF, 0x0000}, {0x0800, 0x0AFF, 0x0000}} },
	{   500, {{0x0A00, 0x0BFF, 0x0000}, {0x0A00, 0x0BFF, 0x0000}, {0x0A00, 0x0BFF, 0x0000}, {0x0A00, 0x0BFF, 0x0000}, {0x0B00, 0x0DFF, 0x0000}, {0x0B00, 0x0DFF, 0x0000}} },
	{   600, {{0x0C00, 0x0DFF, 0x0000}, {0x0C00, 0x0DFF, 0x0000}, {0x0C00, 0x0DFF, 0x0000}, {0x0C00, 0x0DFF, 0x0000}, {0x0E00, 0x10FF, 0x0000}, {0x0E00, 0x10FF, 0x0000}} },
	{   700, {{0x0E00, 0x0FFF, 0x0000}, {0x0E00, 0x0FFF, 0x0000}, {0x0E00, 0x0FFF, 0x0000}, {0x0E00, 0x0FFF, 0x0000}, {0x1100, 0x13FF, 0x0000}, {0x1100, 0x13FF, 0x0000}} },
	{   800, {{0x1000, 0x11FF, 0x0000}, {0x1000, 0x11FF, 0x0000}, {0x1000, 0x11FF, 0x0000}, {0x1000, 0x11FF, 0x0000}, {0x1400, 0x16FF, 0x0000}, {0x1400, 0x16FF, 0x0000}} },
	{   900, {{0x1200, 0x13FF, 0x0000}, {0x1200, 0x13FF, 0x0000}, {0x1200, 0x13FF, 0x0000}, {0x1200, 0x13FF, 0x0000}, {0x1700, 0x19FF, 0x0000}, {0x1700, 0x19FF, 0x0000}} },
	{  1000, {{0x1400, 0x15FF, 0x0000}, {0x1400, 0x15FF, 0x0000}, {0x1400, 0x15FF, 0x0000}, {0x1400, 0x15FF, 0x0000}, {0x1A00, 0x1CFF, 0x0000}, {0x1A00, 0x1CFF, 0x0000}} },
	{  1200, {{0x1600, 0x17FF, 0x0000}, {0x1600, 0x17FF, 0x0000}, {0x1600, 0x17FF, 0x0000}, {0x1600, 0x17FF, 0x0000}, {0x1D00, 0x1FFF, 0x0000}, {0x1D00, 0x1FFF, 0x0000}} },
	{  1400, {{0x1800, 0x27FF, 0x0008}, {0x1800, 0x27FF, 0x0008}, {0x1800, 0x27FF, 0x0008}, {0x1800, 0x27FF, 0x0008}, {0x2000, 0x2FFF, 0x0008}, {0x2000, 0x2FFF, 0x0008}} },
	{  1600, {{0x2800, 0x2FFF, 0x000C}, {0x2800, 0x2FFF, 0x000C}, {0x2800, 0x2FFF, 0x000C}, {0x2800, 0x2FFF, 0x000C}, {0x3000, 0x3CFF, 0x000C}, {0x3000, 0x3CFF, 0x000C}} },
	{  1800, {{0x3000, 0x37FF, 0x000F}, {0x3000, 0x37FF, 0x000F}, {0x3000, 0x37FF, 0x000F}, {0x3000, 0x37FF, 0x000F}, {0x3D00, 0x4BFF, 0x000F}, {0x3D00, 0x4BFF, 0x000F}} },
	{  2000, {{0x3800, 0x3FFF, 0x0012}, {0x3800, 0x3FFF, 0x0012}, {0x3800, 0x3FFF, 0x0012}, {0x3800, 0x3FFF, 0x0012}, {0x4C00, 0x53FF, 0x0012}, {0x4C00, 0x53FF, 0x0012}} },
	{  2200, {{0x4000, 0x47FF, 0x0014}, {0x4000, 0x47FF, 0x0014}, {0x4000, 0x47FF, 0x0014}, {0x4000, 0x47FF, 0x0014}, {0x5400, 0x6BFF, 0x0014}, {0x5400, 0x6BFF, 0x0014}} },
	{  2400, {{0x4800, 0x53FF, 0x0016}, {0x4800, 0x53FF, 0x0016}, {0x4800, 0x53FF, 0x0016}, {0x4800, 0x53FF, 0x0016}, {0x6C00, 0x7BFF, 0x0016}, {0x6C00, 0x7BFF, 0x0016}} },
	{  2600, {{0x5400, 0xFFFF, 0x0018}, {0x5400, 0xFFFF, 0x0018}, {0x5400, 0xFFFF, 0x0018}, {0x5400, 0xFFFF, 0x0018}, {0x7C00, 0xFFFF, 0x0018}, {0x7C00, 0xFFFF, 0x0018}} },
/*END*/ {0xFFFF, {{0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}} },
};/*}}}*/
 const _stPR2000_Table_CEQ_STD_HDResolution pr2000_ceq_std_table_estAtten2_HDT_NEW[MAX_PR2000_CEQ_ATTEN_TBL_NUM] =  
{/*{{{*/
//               {{720p60                }, {720p50                }, {720p30                }, {720p25                }, {1080p30               }, {1080p25               }} },
//      {  dist, {{rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}, {rngMin, rngMax, factor}} },
	{     0, {{0x0000, 0x0980, 0x0000}, {0x0000, 0x0980, 0x0000}, {0x0000, 0x0980, 0x0000}, {0x0000, 0x0980, 0x0000}, {0x0000, 0x06A9, 0x0000}, {0x0000, 0x06A9, 0x0000}} },
	{   100, {{0x0981, 0x0B37, 0x0003}, {0x0981, 0x0B37, 0x0003}, {0x0981, 0x0B37, 0x0003}, {0x0981, 0x0B37, 0x0003}, {0x06AA, 0x0866, 0x0003}, {0x06AA, 0x0866, 0x0003}} },
	{   200, {{0x0B38, 0x0DDA, 0x0007}, {0x0B38, 0x0DDA, 0x0007}, {0x0B38, 0x0DDA, 0x0007}, {0x0B38, 0x0DDA, 0x0007}, {0x0867, 0x0A84, 0x0007}, {0x0867, 0x0A84, 0x0007}} },
	{   300, {{0x0DDB, 0x0F3C, 0x0009}, {0x0DDB, 0x0F3C, 0x0009}, {0x0DDB, 0x0F3C, 0x0009}, {0x0DDB, 0x0F3C, 0x0009}, {0x0A85, 0x0D81, 0x0009}, {0x0A85, 0x0D81, 0x0009}} },
	{   400, {{0x0F3D, 0x10FF, 0x000B}, {0x0F3D, 0x10FF, 0x000B}, {0x0F3D, 0x10FF, 0x000B}, {0x0F3D, 0x10FF, 0x000B}, {0x0D82, 0x0FFF, 0x000B}, {0x0D82, 0x0FFF, 0x000B}} },
	{   500, {{0x1100, 0x11FF, 0x000F}, {0x1100, 0x11FF, 0x000F}, {0x1100, 0x11FF, 0x000F}, {0x1100, 0x11FF, 0x000F}, {0x1000, 0x117F, 0x000F}, {0x1000, 0x117F, 0x000F}} },
	{   600, {{0x1200, 0x12FF, 0x0012}, {0x1200, 0x12FF, 0x0012}, {0x1200, 0x12FF, 0x0012}, {0x1200, 0x12FF, 0x0012}, {0x1180, 0x12FF, 0x0012}, {0x1180, 0x12FF, 0x0012}} },
	{   700, {{0x1300, 0x147F, 0x0015}, {0x1300, 0x147F, 0x0015}, {0x1300, 0x147F, 0x0015}, {0x1300, 0x147F, 0x0015}, {0x1300, 0x147F, 0x0015}, {0x1300, 0x147F, 0x0015}} },
	{   800, {{0x1480, 0x15FF, 0x0018}, {0x1480, 0x15FF, 0x0018}, {0x1480, 0x15FF, 0x0018}, {0x1480, 0x15FF, 0x0018}, {0x1480, 0x167F, 0x0018}, {0x1480, 0x167F, 0x0018}} },
	{   900, {{0x1600, 0x16FF, 0x001A}, {0x1600, 0x16FF, 0x001A}, {0x1600, 0x16FF, 0x001A}, {0x1600, 0x16FF, 0x001A}, {0x1680, 0x187F, 0x001A}, {0x1680, 0x187F, 0x001A}} },
	{  1000, {{0x1700, 0xFFFF, 0x001E}, {0x1700, 0xFFFF, 0x001E}, {0x1700, 0xFFFF, 0x001E}, {0x1700, 0xFFFF, 0x001E}, {0x1880, 0xFFFF, 0x001E}, {0x1880, 0xFFFF, 0x001E}} },
/*END*/ {0xFFFF, {{0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}, {0xFFFF, 0xFFFF, 0xFFFF}} },
};/*}}}*/
#endif //defined(SUPPORT_STD_HDT)

////////////////////////////////////////////////////////////////////////////////////////////

